<?
include "adm_header.php";
writeCommonAdminTable(LA_ADMIN_IMAGE_STATUS,1);

echo "<br>";
echo LA_ADMIN_IMAGE_STATUS_DESCR;

if ($set_image_program==1)
	echo "<p><b>ImageMagick</b> ".LA_ADMIN_IMAGE_ACTIVATED."</p>";
elseif  ($set_image_program==2)
	echo "<p><b>GD</b> ".LA_ADMIN_IMAGE_ACTIVATED."</p>";
else
	echo "<p><font color='red'>".LA_ADMIN_IMAGE_WARNING."</font>: ".LA_ADMIN_IMAGE_WARNING_MORE."</p>";

echo "<p /><b>IMAGEMAGICK</b><br>";
echo LA_ADMIN_IMAGE_PATH_SET." " . $set_magic_path . "<br>";

if (file_exists(($set_magic_path)))
{
	echo LA_ADMIN_IMAGE_BIN_FOUND;
	$found = 1;
}
else
	echo LA_ADMIN_IMAGE_BIN_NOT_FOUND;
	
$command = $set_magic_path;
exec($command,$output,$rv);
$match = 0;
foreach ($output as $value) {
	if (ereg("Usage",$value))
		$match = 1;
	
}

if ($match)
{
	echo "<br><br><font color='green'><b>ImageMagick</b> ".LA_ADMIN_IMAGE_SOFT_FOUND."</font>";	
}
else 
{	
	echo "<br><br><font color='red'><b>".LA_ADMIN_IMAGE_WARNING."</b></font><br />".LA_ADMIN_IMAGE_ERROR."</font>";
}


echo "<p></p><b>".LA_ADMIN_IMAGE_GD2."</b><br>";
echo LA_ADMIN_IMAGE_GD2_MORE . "<br><br>";
if (imagetypes() & IMG_GIF) echo "<font color=green>GIF Support</font><br />";
if (imagetypes() & IMG_JPG) echo "<font color=green>JPEG Support</font><br />";
if (imagetypes() & IMG_PNG) echo "<font color=green>PNG Support</font><br />";

writeCommonAdminTable("","");
require("adm_footer.php");
?> 